{extend name="default/base/base_home" /}

{block name="mall_main"}
<link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/index.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
<style>
    .mall_nav{border-bottom:none;}
    .mall_nav .all_categorys .mc{display: block;}
</style>
<div class="clear"></div>
<!-- HomeFocusLayout Begin-->
<div class="home-focus-layout">
    <div class="bd">
        <ul>
            {dstaglib:adv ap_id='1' limit='10' item='v'}
            <li style="background: url({$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_ADV}/{$v.adv_code}) center top no-repeat rgb(35, 35, 35); display: none;background-color: {$v.adv_bgcolor|default=''}" style="{$v.adv_style|default=''}">
                <a href="{$v.adv_link}" target="{$v.adv_target}" title="{$v.adv_title}">&nbsp;</a>
            </li>
            {/dstaglib:adv}
        </ul>
    </div>
    <div class="hd">
        <ul>
            {dstaglib:adv ap_id='1' limit='10' item='v'}
            <li class=""></li>
            {/dstaglib:adv}
        </ul>
    </div>


    <div class="right-sidebar">
        <div class="mod_personal_center">
            {if $Think.session.is_login}
            <div class="avata_pic_wrap">
                <a id="index_account_icon_login" href="{:url('Member/index')}" target="_blank"><img class="lazyload"  data-original="{:get_member_avatar($Think.session.avatar)}?{$Think.TIMESTAMP}"></a>
            </div>
            <div class="info_wrap">
                <div class="login_box">
                    <div class="user_info clearfix">
                        <em>Hi，{:session('member_name')}</em>
                    </div>
                    <div class="clearfix treasure">
                        <a href="{:url('Memberfavorites/fglist')}" target="_blank" class="gold_coin">
                            <em>{$index_member_info.favoritesgoods_count}</em>
                            <p>我的收藏</p>
                        </a>
                        <a href="{:url('Membervrorder/index',['state_type'=>'state_success'])}" target="_blank" class="gold_coin">
                            <em>{$index_member_info.order_noreceipt_count}</em>
                            <p>我的课程</p>
                        </a>
                    </div>
                </div>
            </div>
            {else /}
            <div class="avata_pic_wrap">
                <a id="index_account_icon_unlogin" href="javascript:void(0)"><img class="lazyload"  data-original="{:get_member_avatar($Think.session.avatar)}?{$Think.TIMESTAMP}"></a>
            </div>
            <div class="info_wrap">
                <div class="unlogin_box">
                    <div class="title">Hi~{$Think.lang.hello}!</div>
                    <div class="tips">
                    </div>
                    <div class="btn_wrap">
                        <a href="{:url('Login/login')}" class="login_btn">{$Think.lang.login}</a>
                        <a href="{:url('Login/register')}" class="regist_btn">{$Think.lang.login_index_regist_now_2}</a>
                    </div>
                </div>
            </div>
            {/if}
            <div class="top_line">
                <div class="vip_list">
                    <a href="javascript:void(0)">
                        <i class="iconfont" style="background:#ff9b1b">&#xe673;</i>
                        <p class="vip_item_text">{$Think.lang.buyer_protection}</p>
                    </a>
                    <a href="javascript:void(0)">
                        <i class="iconfont" style="background:#52a6ff">&#xe67e;</i>
                        <p class="vip_item_text">{$Think.lang.merchant_authentication}</p>
                    </a>
                    <a href="javascript:void(0)">
                        <i class="iconfont" style="background:#57c15b">&#xe74f;</i>
                        <p class="vip_item_text">{$Think.lang.secure_transaction}</p>
                    </a>
                    <div class="clear"></div>
                </div>
            </div>
            <div class="notice_list">
                {foreach $index_articles as $i_a}
                <a title="{$i_a.article_title}" href="{if $i_a.article_url !=''}{$i_a.article_url}{else /}{:url('Article/show',['article_id'=>$i_a.article_id])}{/if}" target="_blank">
                    <span>{$i_a.article_title}</span>
                </a>
                {/foreach}
            </div>
        </div>
    </div>
</div>
<!--HomeFocusLayout End-->





{foreach name="floor_block" item="vo" key="k" }
<div class="floor {if $k%2 == 0}floor_bg000{else}floor_bgfff{/if}">
    <div class="w1200">
        <div class="mt">
            <h3><span class="tit-icon tit-icon-l  tit-icon-l-{$k}"></span>{$vo.gc_name}<span class="tit-icon tit-icon-r  tit-icon-r-{$k}"></span></h3>
        </div>
        <div class="mc clearfix">
            <ul>
                {foreach name="vo.gc_list" key="goods_key" item="goods"}
                <li>
                    <dl>

                        <dd class="goods-thumb">
                            <a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}">
                                <img class="lazyload" data-original="{:goods_cthumb($goods.goods_image,270)}" alt="{$goods.goods_name}"/>
                            </a>
                        </dd>
                        <dt class="goods-name"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$goods.goods_id])}" title="{$goods.goods_name}">{$goods.goods_name}</a></dt>
                        <dd class="goods-price">
                            <em class="price">{:ds_goodsprice_format($goods.goods_price)}</em>
                            <span class="sales"><a href="{:url('Store/index',['store_id'=>$goods.store_id])}" target="_blank">{$goods.store_name}</a></span>
                        </dd>
                    </dl>
                </li>
                {/foreach}
            </ul>
        </div>
    </div>
</div>
{/foreach}


<div class="wrapper mt10"></div>
<div class="index-link wrapper">
    <dl class="website">
        <dt>{$Think.lang.cooperative_partner} | {$Think.lang.friendship_link}<b></b></dt>
        <dd>
            {notempty name="link_list"}
            {foreach name="link_list" item="val"}
            <a href="{$val.link_url}" target="_blank" title="{$val.link_title}">{:str_cut($val.link_title,15)}</a>
            {/foreach}
            {/notempty}
        </dd>
    </dl>
</div>
<div class="footer-line"></div>

<!--首页悬浮弹窗BEGIN-->
{if $Think.config.fixed_suspension_state}
<div class="fixed-suspension-layer" style="display: none;">
    <div class="fixed-suspension-con">
        <a href="{$Think.config.fixed_suspension_url}" class="fixed-suspension-img">
            <img class="lazy" src="{$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_COMMON}/{$Think.config.fixed_suspension_img}">
        </a>
        <div class="close-fixed-suspension"></div>
    </div>
</div>
<script type="text/javascript">
if(!localStorage.fixed_ad_layer){
        $('.fixed-suspension-layer').show();
}
//悬浮广告弹出层
$('body').on('click','.close-fixed-suspension',function(){
        localStorage.fixed_ad_layer = true;
        $('.fixed-suspension-layer').hide();
});
</script>
{/if}
<!--首页悬浮弹窗END-->

<script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
<script>
    //轮播
    jQuery(".home-focus-layout").slide({mainCell: ".bd ul", autoPlay: true, delayTime: 500, interTime: 5000});
    jQuery(".home-sale-layout").slide({autoPlay: false, });
</script>
{/block}